﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using TyMES.Model.Record;


namespace TyMES.ViewModel.Record.BatchInforVMs
{
    public partial class BatchInforBatchVM : BaseBatchVM<BatchInfor, BatchInfor_BatchEdit>
    {
        public BatchInforBatchVM()
        {
            ListVM = new BatchInforListVM();
            LinkedVM = new BatchInfor_BatchEdit();
        }

    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class BatchInfor_BatchEdit : BaseVM
    {
        [Display(Name = "产线号")]
        public String LineCode { get; set; }
        [Display(Name = "工序号")]
        public String OperationCode { get; set; }
        [Display(Name = "工序名称")]
        public String OperationName { get; set; }
        [Display(Name = "SN")]
        public String CurrentSN { get; set; }
        [Display(Name = "批次号")]
        public String BatchCode { get; set; }
        [Display(Name = "单次用量")]
        public String SingleConsumption { get; set; }
        [Display(Name = "所属工单")]
        public String orderCode { get; set; }
        [Display(Name = "所属排程")]
        public String schduleCode { get; set; }
        [Display(Name = "上传工厂mes")]
        public Boolean? uploadFlag { get; set; }

        protected override void InitVM()
        {
        }

    }

}
